﻿<Window x:Class="AdamDsk.NewImageDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AdamDsk"
        mc:Ignorable="d"
        Background="Transparent"
        Title="NewImageDialog" Height="435" Width="311" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="None" Topmost="True">
    <Window.Resources>
        <Style x:Key="CaptionStyle" TargetType="TextBlock">
            <Setter Property="Background" Value="DimGray"/>
            <Setter Property="Foreground" Value="Yellow"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontSize" Value="28"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Padding" Value="4,4,4,10"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="RadionButtonStyle" TargetType="RadioButton">
            <Setter Property="FontSize" Value="18"></Setter>
        </Style>
        <Style x:Key="ButtonContainerStyle" TargetType="StackPanel">
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
        </Style>
        <Style x:Key="ButtonStyle" TargetType="Button">
            <Setter Property="Background" Value="DimGray"/>
            <Setter Property="BorderBrush" Value="White" />
            <Setter Property="BorderThickness" Value="3" />
            <Setter Property="Foreground" Value="Yellow" />
            <Setter Property="FontSize" Value="18" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Margin" Value="2,4,2,4" />
            <Setter Property="Padding" Value="7" />
        </Style>
        <Style x:Key="WindowBorder" TargetType="Border">
            <Setter Property="Background" Value="DarkGray"/>
            <Setter Property="CornerRadius" Value="7" />
            <Setter Property="BorderBrush" Value="Black" />
            <Setter Property="BorderThickness" Value="5"></Setter>
        </Style>
        <Style x:Key="MessageStyle" TargetType="TextBlock" >
            <Setter Property="FontSize" Value="18"/>
            <Setter Property="VerticalAlignment" Value="Stretch"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="Margin" Value="3" />
        </Style>
        <Style x:Key="InputStyle" TargetType="TextBox" >
            <Setter Property="Margin" Value="10,10,10,10"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="FontSize" Value="18"></Setter>
        </Style>
        <Style x:Key="ComboStyle" TargetType="ComboBox" >
            <Setter Property="Margin" Value="10,10,10,10"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="FontSize" Value="18"></Setter>
        </Style>
        <Style x:Key="PanelStyle" TargetType="StackPanel" >
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Border Style="{StaticResource WindowBorder}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Name="lblCaption" Style="{StaticResource CaptionStyle}" Grid.Row="0" Text="Create Disk Image"/>
            <Grid Grid.Row="1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Name="lblMessage" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" 
                           Style="{StaticResource MessageStyle}" TextWrapping="WrapWithOverflow">Select a disk size or enter a custom block count.</TextBlock>
                <RadioButton Name="radDSK" Content="DSK (160k)" Grid.Row="1" Grid.Column="0" GroupName="sizes" Style="{StaticResource RadionButtonStyle}" IsChecked="True"/>
                <RadioButton Name="radDS1" Content="DS1 (320k)" Grid.Row="1" Grid.Column="1" GroupName="sizes" Style="{StaticResource RadionButtonStyle}"/>
                <RadioButton Name="radDS2" Content="DS2 (720k)" Grid.Row="2" Grid.Column="0" GroupName="sizes" Style="{StaticResource RadionButtonStyle}"/>
                <RadioButton Name="radDS3" Content="DS3 (1.44)" Grid.Row="2" Grid.Column="1" GroupName="sizes" Style="{StaticResource RadionButtonStyle}"/>
                <RadioButton Name="radDDP" Content="DDP (256k)" Grid.Row="3" Grid.Column="0" GroupName="sizes" Style="{StaticResource RadionButtonStyle}"/>
                <RadioButton Name="radCustom" Content="Custom" Grid.Row="3" Grid.Column="1" GroupName="sizes" Style="{StaticResource RadionButtonStyle}"/>
                <TextBox Name="txtInput" Grid.Row="4" Grid.Column="1" Style="{StaticResource InputStyle}"/>
                <!--<TextBlock Style="{StaticResource MessageStyle}" Grid.Row="5" Grid.ColumnSpan="2" Grid.Column="0">Number of Directory Blocks:</TextBlock>
                <ComboBox Grid.Column="1" Grid.Row="6" Name="cmbDirectoryBlocks" Style="{StaticResource ComboStyle}">
                    <ComboBoxItem>1</ComboBoxItem>
                    <ComboBoxItem>2</ComboBoxItem>
                    <ComboBoxItem>3</ComboBoxItem>
                    <ComboBoxItem>4</ComboBoxItem>
                    <ComboBoxItem>5</ComboBoxItem>
                    <ComboBoxItem>6</ComboBoxItem>
                    <ComboBoxItem>7</ComboBoxItem>
                </ComboBox>-->
                <TextBlock Style="{StaticResource MessageStyle}" Grid.Row="7" Grid.ColumnSpan="2" Grid.Column="0">Name (no extension):</TextBlock>
                <TextBox Name="txtName" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource InputStyle}"/>
            </Grid>
            <StackPanel Orientation="Horizontal" Style="{StaticResource ButtonContainerStyle}" Grid.Row="2">
                <Button Name="btnCancel" Style="{StaticResource ButtonStyle}" Content="Cancel" Click="btnCancel_Click"/>
                <Button Name="btnOK" Style="{StaticResource ButtonStyle}" Content="OK" Click="btnOK_Click"/>
            </StackPanel>

        </Grid>
    </Border>
</Window>
